package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SCopyPlayerRet extends Object implements IMessageBase
    {
        public var find:SCopyFindPlayer;
        public var totalCount:int;
        public var players:Array;
        public const _type:int = 20422;
        public static var _regist:SCopyPlayerRet = new SCopyPlayerRet(true);

        public function SCopyPlayerRet(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SCopyPlayerRet();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.find.__write(param1);
            param1.writeInt(this.totalCount);
            SeqPublicMiniPlayerHelper.write(param1, this.players);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.find = new SCopyFindPlayer();
            this.find.__read(param1);
            this.totalCount = param1.readInt();
            this.players = SeqPublicMiniPlayerHelper.read(param1);
            
        }

    }
}
